package com.archetype.support.exceptions;

import com.google.common.collect.Maps;
import com.cellulam.framework.core.exceptions.ErrorStatus;

import java.util.Map;

public enum AppErrorStatus implements ErrorStatus {
    ;

    private int status;
    private String message;

    private Map<Integer, AppErrorStatus> map = Maps.newHashMap();

    AppErrorStatus(int status, String message) {
        this.status = status;
        this.message = message;
        this.map.put(status, this);
    }

    @Override
    public int getStatus() {
        return this.status;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public Map getErrorMaps() {
        return this.map;
    }
}
